﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLSingTowerMall;
using DTOSingTowerMall;

namespace FacadeSingTowerMall
{
    public class StoreFacade
    {
        StoreProcess sp;
        public Store st;

        public StoreFacade()
        {
            sp = new StoreProcess();
        }

        public IQueryable<IStore> getStores()
        {
            return sp.getStores();
        }

        public IQueryable<IStore> getStoresByCategory(string categoryName)
        {
            return sp.getStoresByCategory(categoryName);
        }

        public IQueryable<ISubCategory> getSubCategoryList(string categoryName)
        {
            return sp.getSubCategoryList(categoryName);
        }

        public IQueryable<IStore> getStoresBySubcategory(string SubCategoryName)
        {
            return sp.getStoresBySubcategory(SubCategoryName);
        }

        public IQueryable<IStore> getStoresByLevel(int Level)
        {
            return sp.getStoresByLevel(Level);
        }

        public IQueryable<IStore> getStoresByLevelAndCategory(int Level, string categoryName)
        {
            return sp.getStoresByLevelAndCategory(Level, categoryName);
        }

        public IQueryable<IStore> getStoresByName(string StoreName)
        {
            return sp.getStoresByName(StoreName);
        }

        public IQueryable<int> getLevel()
        {
            return sp.getLevel();
        }

        public IQueryable<IStore> getStores(int? subcategoryID, int? categoryID)
        {
            return sp.getStores(subcategoryID, categoryID);
        }

        public IQueryable<IStore> getStoresByCategoryID(int categoryID)
        {
            return sp.getStoresByCategoryID(categoryID);
        }

        public IQueryable<IStore> Stores(string q)
        {
            return sp.Stores(q);
        }
    }
}
